package com.project.proxy;

public class XD implements IEat{

    private IEat ieat;
    public XD(IEat ieat){
        this.ieat = ieat;
    }
    @Override
    public void eat() {
        System.out.println("订餐");
        //执行目标方法
        ieat.eat();
        System.out.println("开发票");
    }
}
